home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _B7B745F59B364140B6E500C3605E968C < prev    next >
Encoding:
Text File  |  2006-08-04  |  2.6 KB  |  70 lines

  1. from PSPApp import *
  2. import PSPUtils
  3.  
  4. def ScriptProperties():
  5.     return {
  6.         'Author': 'Jackie Laderoute',
  7.         'Copyright': '2003 - free for personal use. Not for resale.',
  8.         'Description': "Greyscale with color tone effect.",
  9.         'Host': 'Paint Shop Pro',
  10.         'Host Version': '8.00'
  11.         }
  12.  
  13.  
  14. def Do(Environment):
  15.     if not PSPUtils.IsTrueColor(Environment, App.TargetDocument):
  16.         # IncreaseColorsTo16Million
  17.         App.Do( Environment, 'IncreaseColorsTo16Million', {
  18.             'GeneralSettings': {
  19.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  20.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  21.                 }
  22.             })
  23.  
  24.     App.Do( Environment, 'ColorAdjustChannelMixer', {
  25.             'ChannelMixer': {
  26.                 'Monochrome': App.Constants.Boolean.true, 
  27.                 'Grey': (60,15,25,0), 
  28.                 'Red': (60,15,25,0), 
  29.                 'Blue': (60,15,25,0), 
  30.                 'Green': (60,15,25,0)
  31.                 }, 
  32.             'GeneralSettings': {
  33.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  34.                 'PreviewVisible': App.Constants.Boolean.true, 
  35.                 'AutoProof': App.Constants.Boolean.true, 
  36.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  37.                 }
  38.             }) 
  39.  
  40.     App.Do( Environment, 'NewAdjustmentLayerColorBalance', {
  41.             'General': {
  42.                 'Opacity': 100, 
  43.                 'Name': PSPUtils.LayerName_Tonedgreyscale, 
  44.                 'IsVisible': App.Constants.Boolean.true, 
  45.                 'IsTransparencyLocked': App.Constants.Boolean.false, 
  46.                 'LinkSet': 0, 
  47.                 'UseHighlight': App.Constants.Boolean.false, 
  48.                 'PaletteHighlightColor': (255,255,64), 
  49.                 'GroupLink': App.Constants.Boolean.true, 
  50.                 'BlendMode': App.Constants.BlendMode.Normal
  51.                 }, 
  52.             'ColorBalance': {
  53.                 'PreserveLuminosity': App.Constants.Boolean.true, 
  54.                 'Highlight': (0,0,0), 
  55.                 'Shadow': (0,0,0), 
  56.                 'Midtone': (-75,30,25)
  57.                 }, 
  58.             'Overlay': {
  59.                 'Color': (255,0,0), 
  60.                 'Opacity': 50
  61.                 }, 
  62.             'GeneralSettings': {
  63.                 'ExecutionMode': App.Constants.ExecutionMode.Interactive, 
  64.                 'PreviewVisible': App.Constants.Boolean.true, 
  65.                 'AutoProof': App.Constants.Boolean.true, 
  66.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  67.                 }
  68.             }) 
  69.  
  70.